#ifndef DTKSERIALPORTDEAL_H
#define DTKSERIALPORTDEAL_H

#include <QWidget>
#include "win_qextserialport.h"
#include "baseType.h"
#include <vector>

class DTKSerialPortDeal
{
public:
    explicit DTKSerialPortDeal(QWidget*);
    ~DTKSerialPortDeal();

    _S32 OpenServialDevice(QString,BaudRateType,ParityType);
    _S32 CloseServialDevice();
    _S32 WriteServialDevice(_CHAR*, _U64);
    _S32 ReadServialDevice(_CHAR*, _U64);
public:
    Win_QextSerialPort *DtkSerialDev;

private:
    FBOOL SerialOpenState;
    QWidget *mImple;
};

#endif // DTKSERIALPORTDEAL_H
